﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Pager.ascx.cs" Inherits="Pager" %>
<div style="text-align:center">
    <ul class="pagger">
        <asp:PlaceHolder ID="phdFirst" runat="server" Visible="false">
            <li>
                <asp:LinkButton runat="server" ID="btnFirst" OnClick="btnFirst_Click"> </asp:LinkButton>
            </li>
        </asp:PlaceHolder>
        <asp:PlaceHolder ID="phdPrev" runat="server" Visible="false">
            <li>
                <asp:LinkButton runat="server" ID="btnPrev" Text="Trước" OnClick="btnPrev_Click"> </asp:LinkButton>
            </li>
        </asp:PlaceHolder>
        <asp:Repeater runat="server" ID="repLinkLeft" OnItemCommand="repLink_ItemCommand">
            <ItemTemplate>
                <li>
                    <asp:LinkButton ID="LinkButton1" CssClass='<%#Eval("Css") %>' runat="server" Text='<%#Eval("Index") %>'
                        CommandArgument='<%#Eval("Index") %>' />
                </li>
            </ItemTemplate>
            <FooterTemplate>
                <li>...</li></FooterTemplate>
        </asp:Repeater>
        <asp:Repeater runat="server" ID="repLinkCenter" OnItemCommand="repLink_ItemCommand">
            <ItemTemplate>
                <li>
                    <asp:LinkButton ID="LinkButton1" CssClass='<%#Eval("Css") %>' runat="server" Text='<%#Eval("Index")%>'
                        CommandArgument='<%#Eval("Index") %>' />
                </li>
            </ItemTemplate>
        </asp:Repeater>
        <asp:Repeater runat="server" ID="repLinkRight" OnItemCommand="repLink_ItemCommand">
            <HeaderTemplate>
                <li>...</li></HeaderTemplate>
            <ItemTemplate>
                <li>
                    <asp:LinkButton ID="LinkButton1" CssClass='<%#Eval("Css") %>' runat="server" Text='<%#Eval("Index")%>'
                        CommandArgument='<%#Eval("Index") %>' />
                </li>
            </ItemTemplate>
        </asp:Repeater>
        <asp:PlaceHolder ID="phdNext" runat="server" Visible="false">
            <li>
                <asp:LinkButton runat="server" ID="btnNext" Text="Sau" OnClick="btnNext_Click"> </asp:LinkButton>
            </li>
        </asp:PlaceHolder>
        <asp:PlaceHolder ID="phdLast" runat="server" Visible="false">
            <li>
                <asp:LinkButton runat="server" ID="btnLast" Text=">>|" OnClick="btnLast_Click"> </asp:LinkButton>
            </li>
        </asp:PlaceHolder>
    </ul>
    <div style="clear: both">
    </div>
</div>
